//
//  ReceiptCollectionViewCell.m
//  联付商圈
//
//  Created by apple on 17/7/19.
//  Copyright © 2017年 lianfu. All rights reserved.
//

#import "ReceiptCollectionViewCell.h"

@implementation ReceiptCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.imgView = [[UIImageView alloc] init];
        self.imgView.layer.cornerRadius = (SCREENW - 120) / 10;
        [self addSubview:_imgView];
        [self.imgView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.mas_left).offset(10);
            make.right.equalTo(self.mas_right).offset(-10);
            make.top.equalTo(self.mas_top).offset(10);
            make.height.mas_equalTo((SCREENW - 120) / 5);
        }];
        
        self.titleLabel = [[UILabel alloc] init];
        self.titleLabel.textAlignment = 1;
        self.titleLabel.font = [UIFont systemFontOfSize:14 * FONTSIZE];
        [self addSubview:_titleLabel];
        [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.mas_left).offset(0);
            make.right.equalTo(self.mas_right).offset(0);
            make.top.equalTo(self.imgView.mas_bottom).offset(0);
            make.height.mas_equalTo(20);
        }];
    }
    return self;
}
@end
